import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import * as ElIconModules from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import router from './router'
const app=createApp(App)
for (const iconName in ElIconModules) {
  if (Reflect.has(ElIconModules, iconName)) {    
    const item = ElIconModules[iconName]    
    app.component(iconName, item)
  }
}
app.use(ElementPlus,{locale: zhCn}).use(router).mount('#app')